Open
Conversation
…ocs (Solidity/Rust)
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates the Bitcoin bridge infrastructure into the Mojave monorepo, including Solidity contracts, Rust shared types, TypeScript UTXO indexer, testing scripts, and documentation. The migration consolidates bridge-related components from separate repositories into a unified structure under contracts/bridge/, crates/bridge-types/, and scripts/bridge/.
Key changes:
- Added bridge contract implementations (BridgeGateway, BtcRelay, WBTC token)
- Integrated UTXO indexer as TypeScript service with REST API
- Created Rust shared types crate for bridge operations
- Added comprehensive test suite and E2E testing scripts
Reviewed changes
Copilot reviewed 56 out of 58 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/bridge/*.sh | Wrapper scripts for build, test, deploy, and indexer management |
| scripts/bridge/README.md | Documentation for bridge script usage and workflows |
| crates/bridge-types/src/*.rs | Rust type definitions for UTXO, events, and Bitcoin types |
| contracts/bridge/tools/indexer/src/*.ts | TypeScript UTXO indexer with REST API |
| contracts/bridge/test/*.t.sol | Comprehensive test suite for contracts |
| contracts/bridge/src/token/WBTC.sol | ERC20 token implementation with mint/burn |
| contracts/bridge/src/relay/BtcRelay.sol | Bitcoin SPV light client implementation |
| contracts/bridge/script/withdrawal/*.s.sol | Withdrawal finalization scripts |
| contracts/bridge/script/utils/*.sh | Utility scripts for Bitcoin operations |
| contracts/bridge/foundry.toml | Foundry configuration for Solidity compilation |
| Cargo.toml | Added bridge-types crate to workspace |
Files not reviewed (1)
- contracts/bridge/tools/indexer/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why is this change necessary?
Migrate bridge-related items to the main repo
Description
This PR migrates the bridge into the Mojave monorepo:
Solidity Contracts
Rust Shared Types
UTXO Indexer
Testing & Scripts
Documentation
Closes #issue_number
Type of change
Checklist